package card.dealing;

import java.util.List;

public class test {
    public static void main(String[] args) {
        CardDemo cardDemo = new CardDemo();
        //获取牌
        List<Card> cradList =  cardDemo.BuyCard();
        System.out.println(cradList);
        cardDemo.MixCard(cradList);
        System.out.println(cradList);


        //发牌
        List<List<Card>> ret = cardDemo.play(cradList);

        for (int i = 0; i < ret.size(); i++) {
            System.out.println("这是第"+(i+1)+ "的牌" +ret.get(i));
        }

        System.out.println("剩下的牌"+ cradList);
    }
}
